/*
 * @Author: HeAo
 * @Date: 2021-12-28 08:56:36
 * @LastEditTime: 2021-12-28 09:04:26
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day03\3-拓展运算符.js
 * 别乱动！
 */
let [a, b, ...c] = [1, 2, 3, 4, 5, 6, 7, 8]
console.log(a, b, c);

let obj1 = {
  name: 'zhangsan',
  age: 12
}
let obj2 = {
  ...obj1,
  gender: 'male',
  brith: '1999-01-01'
}
console.log(obj2);
// obj2.name = obj1.name
// obj2.age = obj1.age
function myfun1 (a, b, c, ...d) {
  console.log(a, b, c, d);
}
myfun1(1, 2, 3, 4, 5, 6, 7, 8)